﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Artemis;

namespace JAWWS
{
    class Wall
    {
        public float posX, posY, posZ = 0;
        public uint texID;

        public Wall()
        {     
            texID  = 2;          
        }
        public Wall(MainForm main)
        {
            texID = main.TexIDs[2];
        }    
        public void draw()
        {
            GL.glBegin(GLenum.GL_POLYGON);

            GL.glTexCoord2d(1.0, 0.0);
            GL.glVertex3f(1.0f, 0.0f, 1.0f);

            GL.glTexCoord2d(1.0, 1.0);
            GL.glVertex3f(1.0f, 0.0f, -1.0f );

            GL.glTexCoord2d(0.0, 1.0);
            GL.glVertex3f(-1.0f, 0.0f, -1.0f);

            GL.glTexCoord2d(0.0, 0.0);
            GL.glVertex3f(-1.0f, 0.0f, 1.0f );
            GL.glEnd();
         }
    }
}
